\hypertarget{shellpp_8c}{
\section{shellpp.c File Reference}
\label{shellpp_8c}\index{shellpp.c@{shellpp.c}}
}
{\ttfamily \#include \char`\"{}shellpp.h\char`\"{}}\par
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stddef.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$fcntl.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
{\ttfamily \#include $<$limits.h$>$}\par
{\ttfamily \#include $<$readline/readline.h$>$}\par
{\ttfamily \#include $<$readline/history.h$>$}\par
{\ttfamily \#include $<$sys/types.h$>$}\par
{\ttfamily \#include $<$sys/wait.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{shellpp_8c_afa67d8badb9a22ce01fb463bb9b66ae5}{cmdReader} (char $\ast$pcmdLine)
\begin{DoxyCompactList}\small\item\em command line reader and interpreter \item\end{DoxyCompactList}\item 
int \hyperlink{shellpp_8c_a20104296e209a525d3f0fc190236a648}{cmdExec} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em command exe \item\end{DoxyCompactList}\item 
int \hyperlink{shellpp_8c_a01f14a5dc9529b6e74687644d62037f0}{cmdPipeExec} (int argc1, char $\ast$$\ast$argv1, int argc2, char $\ast$$\ast$argv2)
\begin{DoxyCompactList}\small\item\em command pipe exe \item\end{DoxyCompactList}\item 
int \hyperlink{shellpp_8c_a915eb668477f7305d18327936f87dc3b}{cmdRedirExec} (int argc, char $\ast$$\ast$argv, char $\ast$inFile, char $\ast$outFile)
\begin{DoxyCompactList}\small\item\em command exe for redirection \item\end{DoxyCompactList}\item 
int \hyperlink{shellpp_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em Program main function with calling arguments. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{shellpp_8c_abec1651a1b196b056dc7e9273475a63f}{exitSignal}
\begin{DoxyCompactList}\small\item\em An int exit signal variable. \item\end{DoxyCompactList}\item 
int \hyperlink{shellpp_8c_a12a41849ea11412342d9e67e435eea74}{lastReturn}
\begin{DoxyCompactList}\small\item\em An int lastReturn variable. \item\end{DoxyCompactList}\item 
\hyperlink{shellpp_8h_a89b75b3e581787cfcd68cec5e6b6dee8}{FLAG} \hyperlink{shellpp_8c_ad450d06780b3a81debdf01c689b0f435}{cmdFlags}
\begin{DoxyCompactList}\small\item\em Flag declaration (int). \item\end{DoxyCompactList}\item 
FILE $\ast$ \hyperlink{shellpp_8c_a5f72f6443686d2cfccec024ba88bf1b2}{variableFile}
\begin{DoxyCompactList}\small\item\em Files variable. \item\end{DoxyCompactList}\item 
FILE $\ast$ \hyperlink{shellpp_8c_a7e299743015968c0d677128f19467907}{tempFile}
\begin{DoxyCompactList}\small\item\em temporary file \item\end{DoxyCompactList}\item 
char \hyperlink{shellpp_8c_aee590a6a0de3132a369c297f047717c7}{fileline} \mbox{[}100\mbox{]}
\begin{DoxyCompactList}\small\item\em line length in files \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{shellpp_8c_a20104296e209a525d3f0fc190236a648}{
\index{shellpp.c@{shellpp.c}!cmdExec@{cmdExec}}
\index{cmdExec@{cmdExec}!shellpp.c@{shellpp.c}}
\subsubsection[{cmdExec}]{\setlength{\rightskip}{0pt plus 5cm}int cmdExec (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{shellpp_8c_a20104296e209a525d3f0fc190236a648}


command exe 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]int with the number of arguments \item[{\em argv}]char vector with the arguments \end{DoxyParams}


Definition at line 273 of file shellpp.c.

\hypertarget{shellpp_8c_a01f14a5dc9529b6e74687644d62037f0}{
\index{shellpp.c@{shellpp.c}!cmdPipeExec@{cmdPipeExec}}
\index{cmdPipeExec@{cmdPipeExec}!shellpp.c@{shellpp.c}}
\subsubsection[{cmdPipeExec}]{\setlength{\rightskip}{0pt plus 5cm}int cmdPipeExec (int {\em argc1}, \/  char $\ast$$\ast$ {\em argv1}, \/  int {\em argc2}, \/  char $\ast$$\ast$ {\em argv2})}}
\label{shellpp_8c_a01f14a5dc9529b6e74687644d62037f0}


command pipe exe 


\begin{DoxyParams}{Parameters}
\item[{\em argc1}]Nr of arguments for command one \item[{\em argv1}]Vector of arguments for command one \item[{\em argc2}]Nr of second arguments for command two \item[{\em argv2}]Vector of second arguments for command two \end{DoxyParams}


Definition at line 420 of file shellpp.c.

\hypertarget{shellpp_8c_afa67d8badb9a22ce01fb463bb9b66ae5}{
\index{shellpp.c@{shellpp.c}!cmdReader@{cmdReader}}
\index{cmdReader@{cmdReader}!shellpp.c@{shellpp.c}}
\subsubsection[{cmdReader}]{\setlength{\rightskip}{0pt plus 5cm}int cmdReader (char $\ast$ {\em pcmdLine})}}
\label{shellpp_8c_afa67d8badb9a22ce01fb463bb9b66ae5}


command line reader and interpreter 


\begin{DoxyParams}{Parameters}
\item[{\em pcmdLine}]Pointer to char to be used \end{DoxyParams}


Definition at line 69 of file shellpp.c.

\hypertarget{shellpp_8c_a915eb668477f7305d18327936f87dc3b}{
\index{shellpp.c@{shellpp.c}!cmdRedirExec@{cmdRedirExec}}
\index{cmdRedirExec@{cmdRedirExec}!shellpp.c@{shellpp.c}}
\subsubsection[{cmdRedirExec}]{\setlength{\rightskip}{0pt plus 5cm}int cmdRedirExec (int {\em argc}, \/  char $\ast$$\ast$ {\em argv}, \/  char $\ast$ {\em inFile}, \/  char $\ast$ {\em outFile})}}
\label{shellpp_8c_a915eb668477f7305d18327936f87dc3b}


command exe for redirection 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]Number of arguments \item[{\em argv}]Vector of arguments \item[{\em inFile}]Redirection input file \item[{\em outFile}]Redirection output file \end{DoxyParams}


Definition at line 506 of file shellpp.c.

\hypertarget{shellpp_8c_a3c04138a5bfe5d72780bb7e82a18e627}{
\index{shellpp.c@{shellpp.c}!main@{main}}
\index{main@{main}!shellpp.c@{shellpp.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{shellpp_8c_a3c04138a5bfe5d72780bb7e82a18e627}


Program main function with calling arguments. 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]not used here \item[{\em argv}]not used here \end{DoxyParams}


$<$ get curent working directory 



Definition at line 30 of file shellpp.c.



\subsection{Variable Documentation}
\hypertarget{shellpp_8c_ad450d06780b3a81debdf01c689b0f435}{
\index{shellpp.c@{shellpp.c}!cmdFlags@{cmdFlags}}
\index{cmdFlags@{cmdFlags}!shellpp.c@{shellpp.c}}
\subsubsection[{cmdFlags}]{\setlength{\rightskip}{0pt plus 5cm}{\bf FLAG} {\bf cmdFlags}}}
\label{shellpp_8c_ad450d06780b3a81debdf01c689b0f435}


Flag declaration (int). 



Definition at line 12 of file shellpp.c.

\hypertarget{shellpp_8c_abec1651a1b196b056dc7e9273475a63f}{
\index{shellpp.c@{shellpp.c}!exitSignal@{exitSignal}}
\index{exitSignal@{exitSignal}!shellpp.c@{shellpp.c}}
\subsubsection[{exitSignal}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf exitSignal}}}
\label{shellpp_8c_abec1651a1b196b056dc7e9273475a63f}


An int exit signal variable. 



Definition at line 10 of file shellpp.c.

\hypertarget{shellpp_8c_aee590a6a0de3132a369c297f047717c7}{
\index{shellpp.c@{shellpp.c}!fileline@{fileline}}
\index{fileline@{fileline}!shellpp.c@{shellpp.c}}
\subsubsection[{fileline}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf fileline}\mbox{[}100\mbox{]}}}
\label{shellpp_8c_aee590a6a0de3132a369c297f047717c7}


line length in files 



Definition at line 15 of file shellpp.c.

\hypertarget{shellpp_8c_a12a41849ea11412342d9e67e435eea74}{
\index{shellpp.c@{shellpp.c}!lastReturn@{lastReturn}}
\index{lastReturn@{lastReturn}!shellpp.c@{shellpp.c}}
\subsubsection[{lastReturn}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf lastReturn}}}
\label{shellpp_8c_a12a41849ea11412342d9e67e435eea74}


An int lastReturn variable. 



Definition at line 11 of file shellpp.c.

\hypertarget{shellpp_8c_a7e299743015968c0d677128f19467907}{
\index{shellpp.c@{shellpp.c}!tempFile@{tempFile}}
\index{tempFile@{tempFile}!shellpp.c@{shellpp.c}}
\subsubsection[{tempFile}]{\setlength{\rightskip}{0pt plus 5cm}FILE $\ast$ {\bf tempFile}}}
\label{shellpp_8c_a7e299743015968c0d677128f19467907}


temporary file 



Definition at line 14 of file shellpp.c.

\hypertarget{shellpp_8c_a5f72f6443686d2cfccec024ba88bf1b2}{
\index{shellpp.c@{shellpp.c}!variableFile@{variableFile}}
\index{variableFile@{variableFile}!shellpp.c@{shellpp.c}}
\subsubsection[{variableFile}]{\setlength{\rightskip}{0pt plus 5cm}FILE$\ast$ {\bf variableFile}}}
\label{shellpp_8c_a5f72f6443686d2cfccec024ba88bf1b2}


Files variable. 



Definition at line 14 of file shellpp.c.

